package com.by.service.impl;

import com.by.bean.Products;
import com.by.common.bean.PageBean;
import com.by.common.crud.BaseServiceImpl;
import com.by.mapper.ProductsMapper;
import com.by.page.SelectedProductsQuery;
import com.by.service.ProductsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class ProductsServiceImpl extends BaseServiceImpl<Products, ProductsMapper> implements ProductsService {

    @Autowired
    ProductsMapper productsMapper;

    @Override
    public List<Products> querySelectedProducts(List<String> productnumbers) {
        return productsMapper.querySelectedProducts(productnumbers);
    }

    @Override
    public Products queryProductById(int id) {
        return productsMapper.queryProductById(id);
    }
}
